﻿using System;
using System.Collections.Generic;
using System.Text;
using EnvDTE;
using EnvDTE80;
using Microsoft.VisualStudio.CommandBars;

namespace iAdministerAddin
{
	public class iAdminister
	{
		static protected DTE2 m_Application = null;
		static protected AddIn m_AddInInst = null;
		public static void Startup(DTE2 application, AddIn addInInst)
		{
			m_Application = application;
			m_AddInInst = addInInst;
		}
		public CommandBar GetCommandBar(string sCommandBarName)
		{
            CommandBar ss;
            for (int i = 1; i < ((CommandBars)m_Application.DTE.CommandBars).Count; i++)
            {
               ss  = ((CommandBars)m_Application.DTE.CommandBars)[i];
            }
			return ((CommandBars)m_Application.DTE.CommandBars)[sCommandBarName];
		}
	}
}